package webfilter.application.ipcount;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ListenerToCountIp implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
           Map<String, Integer> map = new LinkedHashMap<>();
           sce.getServletContext().setAttribute("mapIp2Cnt", map);
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    }

}
